package com.hxz.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName IndexController
 * @Description 首页
 * @Author hanxianzhe
 * @Date 2024/3/24 16:36
 */
@Slf4j
@Controller
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("/hello")
    @ResponseBody
    public String index(@RequestParam("name") String name) {
        log.info("进入index");
        return name + "hello";
    }
}
